<script setup>
import autofit from "autofit.js";
// 本地化组件
import { ElConfigProvider } from "element-plus";
// 中文配置
import locale from "element-plus/dist/locale/zh-cn.mjs";

// 自适应
let { width, height } = globalConfig;


// 自适应
onMounted(() => {
  autofit.init({
    dw: width,
    dh: height,
    el: "#app",
    resize: true
  });
});
</script>

<template>
  <el-config-provider :locale="locale">
    <router-view />
  </el-config-provider>
</template>

<style></style>
